<?php
if(have_posts())
{
	while (have_posts())
	{
		the_post();
		$postID = get_the_ID();
		$title = get_the_title($postID);
		$thumbnail = db_get_post_meta($postID, $wpdb->prefix.'thumbnail');
		$permalink = get_permalink($postID);
		$alt = db_get_alt_attachment_id($postID, $wpdb->prefix.'thumbnail');
		if(!$alt)
			$alt = db_vietnamese_slug($title);
		?>
		<li><a href="<?php echo $permalink;?>"><img src="<?php echo $thumbnail;?>" alt="<?php echo $alt;?>" /></a>
			<div class="textfooter"><a href="<?php echo $permalink;?>"><?php echo db_shortDesc($title, $title_len);?></a></div>
			<div class="bgfooter"></div>
		</li>
		<?php 
	}
}
else 
{
	echo '<li> No Service! </li>';
}